import testsuites.test_baidu
import unittest
import getcwd
import os
import HTMLTestRunnerCN

if __name__ == "__main__":
    suite = unittest.TestSuite()
    suite.addTest(testsuites.test_baidu.test_baidu('test_baiduselect'))
    path = getcwd.get_cwd()
    file_path = os.path.join(path, 'report/xxxUI自动化测试报告.html')
    fp = open(file_path, 'wb')
    runner = HTMLTestRunnerCN.HTMLTestReportCN(
        stream=fp,
        title='UI自动化测试报告',
        description='报告中描述部分',
        tester='stk'
    )
    runner.run(suite)
    fp.close()

